package com.luoc.base.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.luoc.base.entity.MyPage;
import com.luoc.base.entity.ParamSome;
import com.luoc.base.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;


/**
 * @Author: luoc
 * @Date: 2019/7/4 9:17
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 查询用户分页
     *
     * @return Page
     */
    // IPage<User> selectPageVo(Page<User> page, QueryWrapper wrapper);

    MyPage<User> mySelectPageMap(@Param("pg") MyPage<User> myPage, @Param("map") Map param);


    MyPage<User> mySelectPage(@Param("pg") MyPage<User> myPage, @Param("ps") ParamSome paramSome);

    // User selectOne(LoginDto loginDto);
}
